import { BaseNode } from '@/components/complex/BaseNode';
import { defineComponentAndRegisterToGraph } from '@/components/complex/BaseNode/define';
import { NodeDrawer } from '@/components/complex/NodeDrawer';
import { NodeVariableMangerForm } from '@/components/complex/NodeVariableMangerForm';
import { NODE_TYPE } from '@/constants/config';

export const StartNode = defineComponentAndRegisterToGraph(NODE_TYPE.START, (props) => {
  return (
    <NodeDrawer trigger={<BaseNode {...props} nodeType={NODE_TYPE.START} />}>
      <NodeVariableMangerForm title='流程变量 (入参)' type="public" />
    </NodeDrawer>
  );
});
